﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Validation;

namespace Acme.BookStore2
{
    public abstract class WorkScheduleCreateOrUpdateDtoBase : ExtensibleObject
    {
        /// <summary>
        /// 排班标题
        /// </summary>
        [Required]
        [DynamicStringLength(typeof(WorkScheduleConsts), nameof(WorkScheduleConsts.MaxTitleLength))]
        public string Title { get; set; }
        /// <summary>
        /// 排班描述
        /// </summary>
        [DynamicStringLength(typeof(WorkScheduleConsts), nameof(WorkScheduleConsts.MaxDescriptionLength))]
        public string Description { get; set; }
        /// <summary>
        /// 排班类型
        /// </summary>
        public string WorkType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}